
        <f:view>
            <h:form>
                <rich:panel header="Flag message" style="border:0px">
                    <p>Why does this posting require our attention?</p>
                    <h:selectOneMenu value="#{FlagsBean.flag.reason}" >
                        <f:selectItem itemLabel="prohibited conduct" itemValue="prohibited conduct" />
                        <f:selectItem itemLabel="miscategorized" itemValue="miscategorized" />
                        <f:selectItem itemLabel="spam" itemValue="spam" />
                    </h:selectOneMenu>
                    <p>Note:</p>
                    <h:inputTextarea  value="#{FlagsBean.flag.note}" cols="20" rows="10"/>
                    <br>
                    <h:commandButton value="Submit flag " action="#{FlagsBean.saveFlag}">
                        <f:setPropertyActionListener target="#{ForumsSession.created}" value="#{true}" />
                    </h:commandButton>
                    <h:commandButton immediate="true" value="  Cancel" action="flagSent">
                    </h:commandButton>
                </rich:panel>
            </h:form>
        </f:view>

